home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / comms / internetinstaller / install.tis < prev    next >
Text File  |  1996-03-20  |  30KB  |  1,127 lines

  1. ;Installer V1 For Control Panel 6 
  2. ;$VER: ControlPanel6 (160196)
  3. ;©Martin Hunt 1996
  4. ;
  5. (complete 0)
  6. (set tfsis1 "Amiga Internet Suite Installation\n\n")
  7. (set tfsis2 "Installation Script and Control Panel 6\nby Martin Hunt - martin@mchunt.demon.co.uk\n\n")
  8. (set tfsis3 "\n")
  9. (set tfsis4 "Some Of The Programs In This Archive Are Shareware\n")
  10. (set tfsis5 "Please Register Them\n\n")
  11. (set tfsis6 "")
  12.  
  13. (set tfsis
  14.   (cat tfsis1 tfsis2 tfsis3 tfsis4 tfsis5 tfsis6)
  15. )
  16.  
  17. (message tfsis (safe))
  18. (welcome)
  19. ;Get Version Info Etc
  20. (set cpu (database "cpu"))
  21. (debug cpu)
  22. (set totmem (database "total-mem"))
  23. (debug totmem)
  24. (set osver (/ (getversion "LIBS:version.library") 65536))
  25.  
  26. ( if (= osver 37) ( (set workbench "2")))
  27. ( if (= osver 38) ( (set workbench "2")))
  28. ( if (= osver 39) ( (set workbench "3")))
  29. ( if (= osver 40) ( (set workbench "3")))
  30. ( if (= osver 41) ( (set workbench "3")))
  31. (debug workbench)
  32.  
  33. (set forh
  34.    (askbool
  35.       (prompt "Are You Installing From Hard Drive or Floppy Disk?")
  36.       (help "Do you really need an explanation?")
  37.       (choices "Hard Drive" "Floppy Disks")
  38.       (default 0)
  39.    )
  40. )
  41.  
  42. (if (= 1 forh) 
  43.    (
  44.    (set hdlocation 
  45.       (askdir 
  46.          (prompt "Which directory are the necessary archives stored?")
  47.          (help "All the necessary archives must be in the same directory, which you must select here.")
  48.          (default "work:")
  49.       )
  50.    )
  51.    (makeassign "TISAmiga1" hdlocation)
  52.    (makeassign "TISAmiga2" hdlocation)
  53.    (makeassign "TISAmiga3" hdlocation)
  54.    (debug hdlocation)
  55.    (makeassign "TISAmiga4" hdlocation)
  56.    ) 
  57. )
  58.    
  59. (set amitcpdir
  60.    (askdir
  61.        (prompt "Where do you want The Internet Suite installed?")
  62.        (help @askdir-help)
  63.        (default "dh1:amitcp")
  64.    )
  65. )
  66.  
  67. (set @default-dest amitcpdir)
  68. (makeassign "amitcp" amitcpdir
  69.  (safe)
  70. )
  71.  
  72. (set insamitcp
  73.    (askbool
  74.       (prompt "Do you want to install the Amitcp-4.0b archive?")
  75.       (help "If you haven't installed AmiTCP yet, select yes")
  76.    )
  77. )
  78.  
  79. (if (= insamitcp 1)
  80.    (
  81.       (Message "Extracting AmiTCP Archive\n\nThis may take a little time\nso be patient")
  82.       (working "Extracting AmiTCP Archive")
  83.       (run "copy lha ram: quiet")
  84.  
  85.       (set dearchiveamitcp "lha e TISAmiga2:amitcp-demo-40.lha amitcp:")
  86.       (run dearchiveamitcp)
  87.       (working "Moving AmiTCP Files")
  88.  
  89.       (run "rename amitcp:amitcp-4.0/#? all amitcp: quiet")
  90.       (run "delete amitcp:amitcp-4.0/#? quiet")
  91.       (run "delete amitcp:amitcp-4.0.info all quiet")
  92.       (run "delete amitcp:amitcp-4.0 quiet")
  93.       (run "copy amitcp:devs/#? all devs: quiet")
  94.       (run "copy amitcp:l/#? all l: quiet")
  95.       (run "copy amitcp:libs/#? all libs: quiet")
  96.       (run "rename amitcp:db/group-example amitcp:db/group")
  97.       (textfile (dest "t:host.tmp")
  98.          (append "127.0.0.1 localhost\n")
  99.          (append "# Real EoF\n")
  100.       )
  101.       (run "type t:host.tmp >> amitcp:db/hosts")
  102.       (run "delete t:#?.tmp quiet")
  103.    )
  104. )
  105. (complete 15)
  106.  
  107. (set insppp
  108.    (askbool
  109.       (prompt "Do you want to install PPP?\nIf you haven't already installed PPP you should do so now")
  110.       (help "")
  111.    )
  112. )
  113.  
  114. (if (= insppp 1)
  115.    (
  116.       ;Add PPP extraction commands here
  117.       (set ppparchive
  118.          (askfile 
  119.             (prompt "Select the PPP archive")
  120.             (help "Choose the filename of the ppp archive\nThis installer has been tested with the 1.44 version of the archive but should work with others")
  121.             (default "tisamiga2:ppp1_44.lha")
  122.          )
  123.       )
  124.       (set unarcppp ("lha e %s ram:" ppparchive))          
  125.       (debug unarcppp)
  126.       (run unarcppp)
  127.       (working "Moving PPP files around")
  128.       (run "copy ram:bin/#? amitcp:bin quiet")
  129.       (run "copy ram:ppp.guide amitcp:docs quiet")
  130.       (makedir "devs:networks")
  131.       ( if (< cpu 68020) ( (set pppv "000")))
  132.       ( if (> cpu 68019) ( (set pppv "020")))
  133.       ( if (= pppv "000") ((run "copy ram:devs/ppp.device.000.eval devs:networks/ppp.device")))
  134.       ( if (= pppv "020") ((run "copy ram:devs/ppp.device.020.eval devs:networks/ppp.device")))
  135.       (textfile
  136.          (dest "t:interfaces")
  137.          (append "#PPP Device Driver Entry\n")
  138.          (append "#TIS Amiga Installation\n")
  139.          (append "ppp0 DEV=DEVS:networks/ppp.device UNIT=0\n")
  140.          (append "#eof for real!\n")
  141.       )
  142.  
  143.       (run "type t:interfaces >> amitcp:db/interfaces")
  144.       (run "delete ram:ppp all quiet")
  145.       (makedir "env:sana2")
  146.       (makedir "envarc:sana2")
  147.    )
  148. )
  149.  
  150. (working "Extracting Control Panel 6")
  151. (run "lha e TISAmiga1:cp6.lha ram:")
  152.  
  153. (copyfiles
  154.    (prompt "Copying Amiconnect to " acdest )
  155.    (help @copyfiles-help)
  156.    (source "ram:cp6/mainprogram")
  157.    (dest "amitcp:bin")
  158.    (all)
  159.    (infos)
  160. )
  161. (complete 25)
  162. (makedir "amitcp:docs"
  163.   (infos)
  164.   (safe)
  165. )
  166.  
  167. (set docdest "amitcp:docs")
  168.  
  169. (copyfiles
  170.    (prompt "Copying documentation to " docdest )
  171.    (help @copyfiles-help)
  172.    (source "ram:cp6/docs")
  173.    (dest docdest)
  174.    (infos)
  175.    (all)
  176. )
  177. (copyfiles
  178.    (prompt "Copying PostNews to Amitcp:bin ")
  179.    (help @copyfiles-help)
  180.    (source "ram:cp6/amitcp/bin/postnews.nntpput")
  181.    (dest "amitcp:bin")
  182.    (newname "postnews")
  183. )
  184. (copyfiles
  185.    (prompt "Copying NNTP Put to Amitcp:bin ")
  186.    (help @copyfiles-help)
  187.    (source "ram:cp6/amitcp/bin/nntpput")
  188.    (dest "amitcp:bin")
  189. )
  190. (copyfiles
  191.    (prompt "Copying Sendnews to Amitcp:bin ")
  192.    (help @copyfiles-help)
  193.    (source "ram:cp6/amitcp/bin/sendnews")
  194.    (dest "amitcp:bin")
  195. )
  196.  
  197. (copyfiles
  198.    (prompt "Copying Common Binaries to Amitcp:bin ")
  199.    (help @copyfiles-help)
  200.    (source "ram:cp6/amitcp/bin/all")
  201.    (dest "amitcp:bin")
  202.    (all)
  203. )
  204.  
  205.  
  206. (set popmail
  207.    (askbool 
  208.       (prompt "Do you have POP or SMTP mail?")
  209.       (help "Most systems use POP mail, some such as Demon however use SMTP\nSelect your mail system here")
  210.       (choices "SMTP" "POP")
  211.       (default 0)
  212.    )
  213. )
  214.  
  215. (if (= popmail 0)
  216.    (
  217.       (Working "Installing AmiPOP")
  218.       (copyfiles 
  219.          (prompt "Copying AmiPOP to Amitcp:bin")
  220.          (help @copyfiles-help)
  221.          (source "ram:cp6/amipop/amipop-amitcp")
  222.          (dest "amitcp:bin/amipop")
  223.          (newname)
  224.       )
  225.       (set mailcmd "setenv ac!mailtype 5")
  226.       (run mailcmd) 
  227.    )
  228. )
  229. (if (= popmail 1)
  230.    (
  231.       (working "Installing SMTP Daemon")
  232.  
  233.       (copyfiles 
  234.          (prompt "Copying Mail Daemon To Amitcp:serv")
  235.          (help @copyfiles-help)
  236.          (source "ram:cp6/amitcp/serv/in.smtpd")
  237.          (dest "amitcp:serv")
  238.       )
  239.       (run "type ram:cp6/amitcp/db/inetd.conf.add >> amitcp:db/inetd.conf")
  240.       (set mailcmd "setenv ac!mailtype 1")
  241.       (run mailcmd)
  242.    )
  243. )
  244.  
  245. (set fo 0)
  246. (complete 30)
  247. (copylib
  248.    (prompt "Copying Apig.Library to Libs:" )
  249.    (help @copyfiles-help)
  250.    (source "ram:cp6/Libs/apig.library")
  251.    (dest "Libs:")
  252.    (infos)
  253.    (confirm)
  254. )
  255.  
  256. (copylib
  257.    (prompt "Copying Rexxserdev.Library to Libs:" )
  258.    (help @copyfiles-help)
  259.    (source "ram:cp6/Libs/rexxserdev.library")
  260.    (dest "Libs:")
  261.    (infos)
  262.    (confirm)
  263. )
  264.  
  265. (copylib
  266.    (prompt "Copying Rexxreqtools.Library to Libs:" )
  267.    (help @copyfiles-help)
  268.    (source "ram:cp6/Libs/rexxreqtools.library")
  269.    (dest "Libs:")
  270.    (infos)
  271.    (confirm)
  272. )
  273.  
  274. (copylib
  275.    (prompt "Copying Rexxsupport.Library to Libs:" )
  276.    (help @copyfiles-help)
  277.    (source "ram:cp6/Libs/rexxsupport.library")
  278.    (dest "Libs:")
  279.    (infos)
  280.    (confirm)
  281. )
  282.  
  283. (copylib
  284.    (prompt "Copying Rexxdossupport.Library to Libs:" )
  285.    (help @copyfiles-help)
  286.    (source "ram:cp6/Libs/rexxdossupport.library")
  287.    (dest "Libs:")
  288.    (infos)
  289.    (confirm)
  290. )
  291. (complete 35)
  292. (set cp5dest
  293.    (askdir
  294.        (prompt "Where do you want Control Panel 6 to be installed?")
  295.        (help @askdir-help)
  296.        (default "sys:wbstartup")
  297.    )
  298. )
  299.  
  300. (copyfiles
  301.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  302.    (help @copyfiles-help)
  303.    (source "ram:cp6/ControlPanel6")
  304.    (dest cp5dest)
  305.    (infos)
  306.    (confirm)
  307. )
  308. (copyfiles
  309.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  310.    (help @copyfiles-help)
  311.    (source "ram:cp6/c/cp6.exe")
  312.    (dest "c:")
  313.    (confirm)
  314. )
  315. (complete 40)
  316. (makedir "amitcp:cp" (infos) (SAFE))
  317. (set cp5 "amitcp:cp")
  318.  
  319. (makeassign "CP" cp5
  320.   (safe)
  321. )
  322.  
  323. (copyfiles
  324.  (prompt "Copying AmiTCP Control Panel's Auxillary Programs to "cp5)
  325.    (help @copyfiles-help)
  326.    (source "ram:cp6/cp")
  327.    (all)
  328.    (dest cp5)
  329.    (infos)
  330.    (confirm)
  331. )
  332.  
  333. (makedir "cp:prefs"
  334.   (prompt)
  335.   (infos)
  336.   (safe)
  337. )
  338.  
  339. (Copyfiles
  340.    (prompt "Copying AmiTCP Control Panel Default Prefs to "cp5"/prefs")
  341.    (help @copyfiles-help)
  342.    (source "ram:cp6/prefs")
  343.    (all)
  344.    (dest "cp:prefs")
  345.    (infos)
  346.    (confirm)
  347. )
  348.  
  349. (run "copy cp:prefs/programs.tfs cp:prefs/programs.cp6 quiet")
  350. (run "rename cp:cpis.exe cp:cpis2.exe")
  351.  
  352. (Copyfiles
  353.       (prompt "Copying AmiTCP Control Panel Main Prefs to s:cp.config")
  354.       (help @copyfiles-help)
  355.       (source "ram:cp6/s/cp.config.amiconnect")
  356.       (dest "s:")
  357.       (confirm)
  358.       (newname "cp.config")
  359. )
  360.  
  361. (run "delete ram:cp#? all quiet")
  362. (complete 45)
  363. (makedir "amitcp:usr"
  364.   (infos)
  365.   (safe)
  366. )
  367. (makedir "amitcp:usr/mail"
  368.   (infos)
  369.   (safe)
  370. )
  371. (makedir "amitcp:usr/news"
  372.   (infos)
  373.   (safe)
  374. )
  375. (makedir "amitcp:usr/spool"
  376.   (infos)
  377.   (safe)
  378. )
  379. (makedir "amitcp:usr/lib"
  380.   (infos)
  381.   (safe)
  382. )
  383.  
  384.  
  385. (set intro "; This file contain assigns to important directories\n")
  386. (set intro2 "; You may need to change the from what values are set\n")
  387. (set firststline "path amitcp:bin add \n")
  388. (set line1 "assign usr: amitcp:usr\n")
  389. (set line2 "assign uunews: amitcp:usr/news\n")
  390. (set line3 "assign uumail: amitcp:usr/mail\n")
  391. (set line4 "assign uuspool: amitcp:usr/spool\n")
  392. (set line5 "assign uulib: amitcp:usr/lib\n")
  393. (set line6 "assign inet: amitcp: \n")
  394.  
  395. (textfile
  396.    (dest "amitcp:bin/amiconnect.dos")
  397.    (append intro)
  398.    (append intro2)
  399.    (append firstline)
  400.    (append line1)
  401.    (append line2)
  402.    (append line3)
  403.    (append line4)
  404.    (append line5)
  405.    (append line6)
  406. )
  407.  
  408. (run "execute amitcp:bin/amiconnect.dos")
  409.  
  410. (textfile
  411.    (dest "t:newsgroups")
  412.    (append "comp.sys.amiga.announce 7\n")
  413.    (append "comp.sys.amiga.misc 7\n")
  414.    (append "demon.ip.support.amiga 7\n")
  415. )
  416.  
  417. (textfile
  418.    (dest "uulib:seq")
  419.    (append "1")
  420. )
  421.  
  422. (run "type t:newsgroups >> uulib:newsgroups"
  423. )
  424.  
  425. (set line1 ("Assign Amitcp: %s \n" amitcpdir))
  426. (set line15 ("Assign Inet: %s \n" amitcpdir))
  427. (set line2 ("Assign Cp: %s \n" cp5))
  428. (set line3 "path amitcp:bin add \n")
  429. (set line4 "path cp: add \n")
  430. (set line5 "alias ftp ncftp\n")
  431.  
  432. (complete 50)
  433. (message "We must now setup Amiconnect\nWe will start with your User Details"
  434. (help "You need to set up various environment variable so that Amiconnect will function correctly.\nThe following part of the installer will assist in this procedure")
  435. (safe)
  436. )
  437.  
  438. (set username
  439.    (askstring
  440.       (prompt "Enter Your User Name")
  441.       (help "Your user name is the bit before the @ in you email address\ne.g. USERNAME@nodename.domainname\n\nThis should be a single word")
  442.       (default "John")
  443.    )
  444. )
  445. (set nodename
  446.    (askstring
  447.       (prompt "Enter Your Node Name")
  448.       (help "Your node name is the bit directly after the @ in you email address\ne.g. username@NODENAME.domainname\n\nThis should be a single word")
  449.       (default "unix")
  450.    )
  451. )
  452. (set domainname
  453.    (askstring
  454.       (prompt "Enter Your Doamin Name")
  455.       (help "Your domain name is the last bit of your email address\ne.g. username@nodename.DOMAINNAME\n\nThis should start with a .")
  456.       (default ".tfs.net")
  457.    )
  458. )
  459.  
  460. (set acemail ("%s@%s%s" username nodename domainname))
  461. (set hostname ("%s%s" nodename domainname))
  462. (if (= insamitcp 1)
  463.  (
  464.    (set ns
  465.      (askstring 
  466.        (prompt "Enter The Ip Address Of Your Providers Nameserver")
  467.        (help "")
  468.        (default "0.0.0.0")
  469.      )
  470.    )
  471.    (set ns1 ("NAMESERVER %s\n" ns)) 
  472.    (set dn1 ("DOMAIN %s\n" domainname))
  473.    (textfile (dest "t:resolv.tmp")
  474.     (append ";NameServer\n")
  475.     (append ns1)
  476.     (append "NAMESERVER 158.152.1.58\n")
  477.     (append "NAMESERVER 193.122.96.33\n")
  478.     (append ";Domain Names\n")
  479.     (append dn1)
  480.     (append "DOMAIN .net\n")
  481.     (append "DOMAIN .co.uk\n")
  482.     (append "DOMAIN .com\n")
  483.     (append "DOMAIN .ac.uk\n")
  484.     (append "DOMAIN .edu\n")
  485.    )
  486.    (run "type t:resolv.tmp >> amitcp:db/resolv.conf")
  487.  )
  488. )
  489. (textfile (dest "envarc:username") (append username))
  490. (textfile (dest "env:username") (append username))
  491. (textfile (dest "envarc:nodename") (append nodename))
  492. (textfile (dest "env:nodename") (append nodename))
  493. (textfile (dest "envarc:domainname") (append domainname))
  494. (textfile (dest "env:domainname") (append domainname))
  495. (textfile (dest "envarc:hostname") (append hostname))
  496. (textfile (dest "env:hostname") (append hostname))
  497.  
  498. (set home ("amitcp:usr/%s" username))
  499.  
  500. (makedir home
  501.   (infos)
  502.   (safe)
  503. )
  504.  
  505. (set line6 ("assign home: %s \n" home))
  506.  
  507. (startup "CP6"
  508.    (prompt "Adding assigns and paths to s:user-startup")
  509.    (help @startup-help)
  510.    (command line1)
  511.    (command line15)
  512.    (command line2)
  513.    (command line3)
  514.    (command line4)
  515.    (command line5)
  516.    (command line6)
  517. )
  518. (textfile
  519.    (dest "env:ac!home")
  520.    (append home)
  521. )
  522. (complete 55)
  523. (textfile
  524.    (dest "env:ac!email")
  525.    (append acemail)
  526. )
  527.  
  528. (set realname
  529.    (askstring
  530.       (prompt "Enter Your Real Name")
  531.       (help "This is the name which will be sent with your mail and news messages\nIt helps people see who you really are, if you do not set this you will be known as realname")
  532.       (default "John Smith")
  533.    )
  534. )
  535.  
  536. (textfile
  537.    (dest "env:realname")
  538.    (append realname)
  539. )
  540. (textfile
  541.    (dest "envarc:realname")
  542.    (append realname)
  543. )
  544.  
  545. (if (= insamitcp 1)
  546.  (
  547.   (set passline ("%s|*|100|100|%s|%s|shell" username realname home))
  548.   (textfile (dest "amitcp:db/passwd") (append passline))
  549.  )
  550. )
  551.  
  552. (set userfile (cat username "," realname ",http://www.webzone1.co.uk/www/plymouthweb/," username "," realname))
  553. (textfile (dest "cp:prefs/users") (append userfile))
  554.  
  555. (complete 60)
  556. (message "We now need to setup your modem details, this may be tricky, so have your modem manual handy."
  557.   (safe)
  558. )
  559.  
  560. (set serial
  561.    (askfile
  562.       (prompt "What serial device driver are you using?")
  563.       (help "This is the program that allows the Amiga to talk to the modem via your serial port.\n\nThe driver supplied with your Amiga is called serial.device but you are advised to use an improved driver such as artser.device")
  564.       (default "devs:serial.device")
  565.     )
  566. )
  567.  
  568. (textfile
  569.    (dest "env:ac!serial")
  570.    (append serial)
  571. )
  572.  
  573. (set devno
  574.    (asknumber
  575.       (prompt "What serial port number are you using?")
  576.       (help "The inbuilt serial port is 0, unless you have an additional serial ports added to your Amiga you should use this port")
  577.       (default "0")
  578.    )
  579. )
  580.  
  581. (textfile
  582.    (dest "env:ac!devno")
  583.    (append devno)
  584. )
  585.  
  586. (set bdrte
  587.    (askchoice
  588.       (prompt "What baud rate do you wish to use?")
  589.       (help "This is the rate that your Amiga communicates with the modem.\n\nIf you are using a 14400 modem use 19200 or 38400\nIf you are using a 28800 modem use 38400 or 57600\n\nPlease note a standard Amiga will not cope with rates above 57600.")
  590.       (choices "2400" "4800" "9600" "19200" "38400" "57600" "115200")
  591.       (default 3)
  592.    )
  593. )
  594. (if (= bdrte 0) (set baudrate 2400))
  595. (if (= bdrte 1) (set baudrate 4800))
  596. (if (= bdrte 2) (set baudrate 9600))
  597. (if (= bdrte 3) (set baudrate 19200))
  598. (if (= bdrte 4) (set baudrate 38400))
  599. (if (= bdrte 5) (set baudrate 57600))
  600. (if (= bdrte 6) (set baudrate 115200))
  601. (textfile
  602.    (dest "env:ac!baudrate")
  603.    (append baudrate)
  604. )
  605. (complete 60)
  606. (set slipdev "PPP")
  607.  
  608. (textfile
  609.    (dest "env:ac!slipdev")
  610.    (append slipdev)
  611. )
  612.  
  613. (set init
  614.    (askstring
  615.       (prompt "Enter Modem Initialisation String")
  616.       (help "This is the command you send to you modem to reset/initialise it.\n This is nearly always ATZ")
  617.       (default "ATZ")
  618.    )
  619. )
  620.  
  621. (textfile
  622.    (dest "env:ac!init")
  623.    (append init)
  624. )
  625.  
  626. (set dial
  627.    (askstring
  628.       (prompt "Enter Your Modems Dial Command")
  629.       (help "This will depend on whether you are connected to a pulse dial exchange or a tone dial compatable exchange\nMost modern exchanges are tone dial and the usual command is ATDT, for pulse dial it is usually ATDP.")
  630.       (default "ATDT")
  631.    )
  632. )
  633.  
  634. (textfile
  635.    (dest "env:ac!dial")
  636.    (append dial)
  637. )
  638.  
  639. (set helpdtr "The DTR (Data Terminal Ready) signal tells the modem to drop the call once all data has stopped.\n As amiconnect needs to stop data transmission while it switches from the serial device to the network (slip/ppp) driver, we need to overide")
  640. (set helpdtr2 "this signal.\n\n On a USRobotics Sportster modem this command is AT&d0")
  641.  
  642. (set helpdtrt
  643.   (cat helpdtr helpdtr2)
  644. )
  645.  
  646. (set dtr_on
  647.    (askstring
  648.       (prompt "Enter the command to\noveride DTR (Data Terminal Ready)")
  649.       (help helpdtrt)
  650.       (default "AT&d0")
  651.     )
  652. )
  653.  
  654. (textfile
  655.    (dest "env:ac!dtr_on")
  656.    (append dtr_on)
  657. )
  658.  
  659. (set dtr_off
  660.    (askstring
  661.       (prompt "Enter the command to disable\n the DTR (Data Terminal Ready) overide")
  662.       (help "This is the command which resets the DTR (Data Terminal Ready) overide to off.\n\nFor a USRobotics Sportster this is AT&d2")
  663.       (default "AT&d2")
  664.     )
  665. )
  666.  
  667. (textfile
  668.    (dest "env:ac!dtr_off")
  669.    (append dtr_off)
  670. )
  671.  
  672. (set hang
  673.    (askstring
  674.       (prompt "Enter the command to hang up the modem")
  675.       (help "This command is needed to disconnect your modem call to your service provider, failure to set this correctly could lead to a very large telephone bill!\n\nThe usual command is ATH")
  676.       (default "ATH")
  677.    )
  678. )
  679.  
  680. (textfile
  681.    (dest "env:ac!hang")
  682.    (append hang)
  683. )
  684.  
  685. (set cmd
  686.    (askstring
  687.       (prompt "What is the escape code to return your modem to command mode?")
  688.       (help "This command is needed to switch your modem into its command mode in the middle of data transmission. It is referred to commonly as the escape code.\n\nOn USRobotics Sportster Modems it is +++")
  689.       (default "+++")
  690.    )
  691. )
  692.  
  693. (textfile
  694.    (dest "env:AC!cmd")
  695.    (append cmd)
  696. )
  697.  
  698. (set dte1 "This is probably the most problematic command to enter.\n In manuals it may be referred to as the DTE Rate, Terminal to Modem, serial port rate or simply Data Rate.")
  699. (set dte2 "\nYou need to set this command so that the data rate is fixed.\n\n On a USRobotics Sportster the command is at&b1\n\nOn some other modems the command is /n")
  700. (complete 65)
  701. (set dtehelp
  702.   (cat dte1 dte2)
  703. )
  704.  
  705. (set datarate
  706.    (askstring
  707.       (prompt "Enter the command to set the serial port data rate (DTE)")
  708.       (help dtehelp)
  709.       (default "AT&b1")
  710.    )
  711. )
  712.  
  713. (textfile
  714.    (dest "env:ac!datarate")
  715.    (append datarate)
  716. )
  717.  
  718. (set ok
  719.    (askstring
  720.       (prompt "What string does your modem return when a command has been completed successfully?")
  721.       (help "This is usually OK.\n\nIf this isn't set correctly Amiconnect will not know whether your modem has completed what it has been asked to do")
  722.       (default "OK")
  723.    )
  724. )
  725.  
  726. (textfile
  727.    (dest "env:ac!ok")
  728.    (append ok)
  729. )
  730.  
  731. (textfile
  732.    (dest "env:ac!ipno")
  733.    (append "0.0.0.0")
  734. )
  735.  
  736.  
  737. (set gate "0.0.0.0")
  738.  
  739. (textfile
  740.    (dest "env:ac!gate")
  741.    (append gate)
  742. )
  743.  
  744. (set defmailserver ("mail%s" domainname))
  745. (set defnewsserver ("news%s" domainname))
  746. (set mailserver
  747.    (askstring
  748.       (prompt "Enter The Name Of Your MailServer")
  749.       (help @askstring-help)
  750.       (default defmailserver)
  751.    )
  752. )
  753. (set newsserver
  754.    (askstring
  755.       (prompt "Enter The Name Of Your News Server")
  756.       (help @askstring-help)
  757.       (default defnewsserver)
  758.    )
  759. )
  760.  
  761.  
  762. (textfile
  763.    (dest "env:ac!mailserver")
  764.    (append mailserver)
  765. )
  766.  
  767. (textfile
  768.    (dest "env:ac!newsserver")
  769.    (append newsserver)
  770. )
  771.  
  772. (set pop1
  773.    (askstring
  774.       (prompt "Enter the name of your main pop")
  775.       (help "It is suggested that you enter the location of the main pop here such as London.")
  776.       (default "Yourtown")
  777.    )
  778. )
  779.  
  780. (textfile
  781.    (dest "env:ac!pop1")
  782.    (append pop1)
  783. )
  784.  
  785. (set phone1
  786.    (askstring
  787.       (prompt "Enter the phone number of your main pop")
  788.       (help "Enter the phone number you usually dial to connect your computer to the internet")
  789.       (default "01234 5678")
  790.    )
  791. )
  792.  
  793. (textfile
  794.    (dest "env:ac!phone1")
  795.    (append phone1)
  796. )
  797.  
  798. (set pop2
  799.    (askstring
  800.       (prompt "Enter the name of your backup pop")
  801.       (help "Many providers have additional pops which you may use when your pop is down or engaged, if so enter your second choice of pop here.")
  802.       (default "Yourtown")
  803.    )
  804. )
  805.  
  806. (textfile
  807.    (dest "env:ac!pop2")
  808.    (append pop2)
  809. )
  810.  
  811. (set phone2
  812.    (askstring
  813.       (prompt "Enter the phone number of your backup pop")
  814.       (help "Enter the phone number you dial if your first pop is unable to connect your computer to the internet")
  815.       (default "01234 5678")
  816.    )
  817. )
  818.  
  819. (textfile
  820.    (dest "env:ac!phone2")
  821.    (append phone2)
  822. )
  823.  
  824.  
  825. (set login1 "The standard login procedure will cope with most service providers. If your login procedure is similar to that below please use the standard procedure, otherwise you will need to use the advanced login")
  826. (set login2 "\n\nSystem sends login/username prompt, you reply with username\nThe system then sends password prompt, you reply with your password\nThe system then asks what protocol you are using (slip or PPP), you reply either slip or ppp\n")
  827. (set login3 "you are then logged on and on the net.\n\n the actual prompts can be changed but they need to be in the above order and shouldn't have any additional requests for information\n\n")
  828. (set login4 "The advanced login requires you to enter quite a bit of data, so it is advised that if unsure you try the standard login first and then if that fails use the advanced login script to attempt to setup the advanced login.")
  829.  
  830. (set loginhelp
  831.    (cat login1 login2 login3 login4)
  832. )
  833.  
  834. (set logintype
  835.    (askbool
  836.       (prompt "Do you want to use the standard or advanced login procedure?\n\n(Please see help for more details)")
  837.       (help loginhelp)
  838.       (choices "Standard Login" "Advanced Login")
  839.       (default 1)
  840.    )
  841. )
  842.  
  843. (if (= logintype 1)
  844.     ;Standard login clauses
  845.    (
  846.       (set acprompt
  847.          (askstring
  848.             (prompt "Enter login prompt")
  849.             (help "This is the initial prompt which is usually Login: or User:\nIt is often advisable to miss off the first character so login: would be ogin:")
  850.             (default "ogin:")
  851.          )
  852.       )
  853.       (textfile
  854.          (dest "env:ac!prompt")
  855.          (append acprompt)
  856.       )
  857.       (set loginname
  858.          (askstring
  859.             (prompt "Enter your response to the login prompt")
  860.             (help "This is usually your username or your nodename")
  861.             (default username)
  862.          )
  863.       )
  864.       (textfile
  865.          (dest "env:ac!loginname")
  866.          (append loginname)
  867.       )
  868.       (set passprompt
  869.          (askstring
  870.             (prompt "Enter the prompt that requests your password")
  871.             (help "What text is displayed just before you usually enter your password?\nThis is usually pass: or password:")
  872.             (default "assword:")
  873.          )
  874.       )
  875.       (textfile
  876.          (dest "env:ac!passprompt")
  877.          (append passprompt)
  878.       )
  879.       (set password
  880.          (askstring
  881.             (prompt "Enter your password")
  882.             (help "What do you type when asked for your password")
  883.             (default "********")
  884.          )
  885.       )
  886.       (textfile
  887.          (dest "env:ac!password")
  888.          (append password)
  889.       )
  890.       (textfile 
  891.    (dest "env:ac!loginscript")
  892.              (append "NOCUSTOMSCRIPTNEEDED")
  893.       )
  894.       (set protocol
  895.          (askstring
  896.             (prompt "Enter the protocol prompt")
  897.             (help "This is the prompt that asks what protocol you are using.\nAmiconnect will reply to this prompt with either slip or ppp depending on how you set up the modem details")
  898.             (default "rotocol:")
  899.          )
  900.       )
  901.       (textfile
  902.          (dest "env:ac!protocol")
  903.          (append protocol)
  904.       )
  905.    )
  906.  
  907.    (
  908.  
  909.       (set sendcmd "#")
  910.  
  911.       (textfile
  912.          (dest "amitcp:db/aclogonscript")
  913.       )
  914.  
  915.       (until (= sendcmd "\0")
  916.         (
  917.          (set rcvcmd
  918.             (askstring
  919.                (prompt "Enter Prompt\n\n(leave blank to exit dialscript editor)")
  920.                (help "Enter the text which your internet provider has sent for you to reply to, e.g. login:")
  921.             )
  922.          )
  923.  
  924.          (set sendcmd
  925.             (askstring
  926.                (prompt "Enter Response To Prompt - " rcvcmd " \n\n(leave blank to exit dialscript editor)")
  927.                (help "Enter the text which you send after receiving the prompt mentioned in previous data entry box")
  928.             )
  929.          )
  930.          (debug rcvcmd sendcmd)
  931.  
  932.          (if (and (= rcvcmd "\0") (= sendcmd "\0"))
  933.  
  934.                  (set fred "fred")
  935.  
  936.                  (
  937.                    (textfile
  938.                      (dest "t:dialtest")
  939.                      (append rcvcmd)
  940.                      (append "\n")
  941.                      (append sendcmd)
  942.                      (append "\n")
  943.                    )
  944.                    (run "type t:dialtest >> amitcp:db/aclogonscript")
  945.                    (textfile
  946.                        (dest "env:ac!loginscript")
  947.                        (append "amitcp:db/acloginscript")
  948.                    )
  949.                  )
  950.  
  951.          )
  952.         )
  953.      )
  954.  
  955.    )
  956. )
  957.  
  958. (run "copy env:ac!#? envarc:")
  959. (run "copy env:realname envarc:")
  960.  
  961. (set insconfig
  962.    (askbool
  963.       (prompt "Do you wish to setup your uulib:config file?\n\nIf you have not already configured this file you must do so now")
  964.       (help "This file is crucial, you need it")
  965.       (default 1)
  966.    )
  967. )
  968. (if (= insconfig 1)
  969.   (
  970.       (set line1 ("UserName   %s" username))
  971.       (set line2 ("RealName   %s" realname))
  972.       (set line3 ("Nodename   %s" nodename))
  973.       (set line4 ("Hostname   %s" hostname))
  974.       (set organisation "http://www.webzone1.co.uk/www/plymouthweb/")
  975.       (set line5 ("Organization   %s" organisation))
  976.       (set tz 
  977.          (askstring 
  978.             (prompt "Enter Your Timezone i.e. GMT,CST,CET,EST etc.")
  979.             (help @askstring-help)
  980.             (default "GMT")
  981.          )
  982.       )
  983.    
  984.       (set line6 ("Timezone   %s" tz))
  985.       (set defaultnode mailserver)
  986.       (set line7 ("DefaultNode   %s" defaultnode))
  987.       (set line8 ("NNTPServer   %s" newsserver))
  988.       (set line9 ("ReplyPrefix   >"))
  989.       (set line10 ("MailEditor   c:ed"))
  990.       (set line11 ("NewsEditor   c:ed"))
  991.       (set line12 ("RMail   amitcp:bin/rmail"))
  992.       (set line13 ("SendMail   amitcp:bin/sendmail"))
  993.  
  994.       (set nl "\n")
  995.       (textfile
  996.          (dest "uulib:config")
  997.          (append line1)
  998.          (append nl)
  999.          (append line2)
  1000.          (append nl)
  1001.          (append line3)
  1002.          (append nl)
  1003.          (append line4)
  1004.          (append nl)
  1005.          (append line5)
  1006.          (append nl)
  1007.          (append line6)
  1008.          (append nl)
  1009.          (append line7)
  1010.          (append nl)
  1011.          (append line8)
  1012.          (append nl)
  1013.          (append line9)
  1014.          (append nl)
  1015.          (append line10)
  1016.          (append nl)
  1017.          (append line11)
  1018.          (append nl)
  1019.          (append line12)
  1020.          (append nl)
  1021.          (append line13)
  1022.       )
  1023.    )
  1024. )
  1025.  
  1026. (complete 75)
  1027. ;Extract and setup Mail
  1028.  
  1029.  
  1030. (set fred 0)
  1031. (if (= fred 1)
  1032.    (
  1033. ;check for mui if not warn
  1034. (working "Checking For MUI")
  1035.  
  1036. (set mui (exists "mui:libs/muimaster.library"))
  1037. (set mui2 (exists "libs:muimaster.library"))
  1038. (set muiinstalled (+ mui mui2))
  1039.  
  1040. (if (= muiinstalled 0)
  1041.    (message "Warning:\n\nYou Will Need MUI To Run Amosaic\n\n I will install Amosaic but it won't\nwork until you install MUI"))
  1042.  
  1043. ;setup Amosaic
  1044. (working "Extracting AMprefs.lha")
  1045. (run "lha e TISAmiga1:amprefs.lha ram:")
  1046. (run "copy ram:amprefs/amp#? sys:prefs quiet")
  1047. (run "copy ram:amprefs/README amitcp:docs/AMPrefs.readme quiet")
  1048. (run "copy ram:amprefs/README.info amitcp:docs/AMPrefs.readme.info quiet")
  1049. (run "delete ram:ampref#? all quiet")
  1050. (if (= workbench "2")
  1051.    (
  1052.       (Working "Install Amosaic1.2 for WB2")
  1053.       (run "lha e TISAmiga1:Mosaic-1.2.1-AmiTCP.lha ram:")
  1054.       (run "copy ram:mosaic-1.2.1-AmiTcp amitcp:bin/amosaic quiet")
  1055.       (run "copy ram:mosaic-1.2.1-AmiTCP.readme amitcp:docs quiet")
  1056.       (run "copy ram:print.www s: quiet")
  1057.       (run "delete ram:mos#? quiet")
  1058.       (run "delete ram:print.www quiet")
  1059.       (working "Amosaic Extracted")
  1060.    )
  1061. )
  1062. (if (= workbench "3")
  1063.    (
  1064.       (Working "Install Amosaic2 for WB3+")
  1065.       (run "lha e TISAmiga1:AMosaic2.lha ram:")
  1066.       (run "copy ram:Amosaic-AmiTcp amitcp:bin/amosaic quiet")
  1067.       (run "copy ram:Amosaic-AmiTCP.info amitcp:bin/amosaic.info quiet")
  1068.       (run "copy ram:readm#? amitcp:docs quiet")
  1069.       (run "delete ram:readm#? quiet")
  1070.       (run "delete ram:Amosaic#? quiet")
  1071.       (working "Amosaic Extracted")
  1072.       (working "Now We Need To Extract ZGif")
  1073.       (complete 90)
  1074.       ; setup zgif
  1075.       (run "lha e TISAmiga1:ZGIFDT39_16.lha ram:")
  1076.       (run "copy ram:gif.datatype sys:classes/datatypes/ quiet")
  1077.       (run "copy ram:datatypes/gi#? devs:datatypes/ quiet")
  1078.       (run "copy ram:zgifdatat#? amitcp:docs quiet")
  1079.       (run "delete ram:datatyp#? all quiet")
  1080.       (run "delete ram:gif.datatype quiet")
  1081.       (run "delete ram:zgif#? quiet")
  1082.       (working "ZGif Datatype Installed")
  1083.    )   
  1084. )
  1085. ))
  1086. (if (= insamitcp 1)
  1087.    (
  1088.       (set pm ("Postmaster: %s" username))
  1089.       (textfile
  1090.          (dest "t:tmpaliases")
  1091.          (append pm)
  1092.       )
  1093.    
  1094.       (run "type t:tmpaliases >> uulib:aliases")
  1095.    )
  1096. )
  1097. (set installgrn 
  1098.    (askbool
  1099.       (prompt "Do you wish to install the GRn Newsreader?")
  1100.       (help "have you the archive Grn-2.1.lha?\ndo you want it installed?\n\nThis program will allow you to read the usenet messages")
  1101.    )
  1102. )
  1103. (if (= installgrn 1)
  1104.    (
  1105.       (welcome "Installing Grn Newsreader")
  1106.       (run "lha -r -x x tisamiga3:Grn-2.1.lha")
  1107.       (run "copy ram:grn-2.1/fonts fonts: all clone quiet")
  1108.       (run "copy ram:grn-2.1/grn.amitcp amitcp:bin/grn clone quiet")
  1109.       (run "copy ram:grn-2.1/grn.info amitcp:bin clone quiet")
  1110.       (run "copy ram:grn-2.1/grn.guide amitcp:docs clone quiet")
  1111.    
  1112.    )
  1113. )
  1114.  
  1115. (run "path amitcp:bin add")
  1116. (run "path cp: add")
  1117.  
  1118. (complete 95)
  1119. ;Register Messages
  1120. (set cp1 "Control Panel 6 Is Shareware\nby Martin Hunt - Martin@mchunt.demon.co.uk\n")
  1121. (set cp2 "The UK Fee is £10 standard or £20 delxe\n")
  1122. (set cp3 "The US Fee is $20 standard or $40 deluxe\n\n")
  1123. (set regmessage (cat cp1 cp2 cp3))
  1124. (message regmessage)
  1125. (exit "Please Read Amitcp:docs/cp6.guide\n&\namitcp:docs/controlpanelprefs.guide\nfor useage instructions\n\nCP6 - Martin Hunt 1996")
  1126.  
  1127.